Skip to content

[fuzz] Fix issues with single-inst module generator#4674

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
abrown:single-inst-typos
Aug 10, 2022
Merged

[fuzz] Fix issues with single-inst module generator#4674
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
abrown:single-inst-typos

Conversation

@abrown
Copy link
Copy Markdown
Member

@abrown abrown commented Aug 10, 2022

While fuzzing with the new target in #4671, I discovered several issues with the single-instruction module generator:

  • i64.extend32_s had an incorrect signature
  • the unary! macro was sometimes creating binary-argument functions

abrown added 2 commits August 10, 2022 08:26
This single-instruction test incorrectly attempted to convert an `i32`
to an `i64`; the correct signature is `i64 -> i64`. See the [WebAssembly
specification](https://webassembly.github.io/spec/core/bikeshed/#a7-index-of-instructions).
Previously, the `unary!` macro created functions that used two operands
instead of the expected one.
@alexcrichton alexcrichton enabled auto-merge (squash) August 10, 2022 15:43
@alexcrichton alexcrichton merged commit 354daf5 into bytecodealliance:main Aug 10, 2022
@abrown abrown deleted the single-inst-typos branch August 10, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants